package exam.alipay.service.impl;

import com.alipay.api.AlipayApiException;
import exam.alipay.AliPay;
import exam.alipay.domain.AlipayBean;
import exam.alipay.domain.Pay;
import exam.alipay.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/10 3:33
 * @since JDK 1.8
 */
@Service
public class PayServiceImpl implements PayService {

    @Autowired
    private AliPay alipay;

    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.payQrCode(alipayBean);
    }

    @Override
    public String aliPay(Pay pay) {
        return null;
    }
}
